<@log.loginList result=result userId=userId channel=channel
            name=name startCreateDate=startCreateDate endCreateDate=endCreateDate ip=ip
            orderField=orderField orderType=orderType pageIndex=pageNum pageSize=numPerPage>
<div class="pageHeader card">
    <form class="pagerForm" action="log/login.html" autocomplete="off" onsubmit="return navTabSearch(this);" method="post">
        <#include "../include_page/parameters.html"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label><@t.page 'channel'/>:</label>
                    <input type="text" name="channel" value="${channel!}"/>
                </li>
                <li>
                    <label><@t.page 'user'/>:</label>
                    <#include "../include_page/userId.html"/>
                </li>
                <li>
                    <label><@t.page 'user.username'/>:</label>
                    <input type="text" name="name" value="${name!}"/>
                </li>
                <li>
                    <label><@t.page 'log.login_date'/>:</label>
                    <input type="text" name="startCreateDate" class="date" size="10" autocomplete="off" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startCreateDate!}"/>
                    <a class="inputDateButton" href="javascript:void(0);"></a>
                    <span>-</span>
                    <input type="text" name="endCreateDate" class="date" size="10" autocomplete="off" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d+1}" value="${endCreateDate!}"/>
                    <a class="inputDateButton" href="javascript:void(0);"></a>
                </li>
                <li>
                    <select class="combox" name="result">
                        <option value><@t.page 'result'/></option>
                        <option value="true"${(result?has_content&&"true"==result)?then(' selected="true"','')?no_esc}><@t.page 'success'/></option>
                        <option value="false"${(result?has_content&&"false"==result)?then(' selected="true"','')?no_esc}><@t.page 'fail'/></option>
                    </select>
                </li>
                <li>
                    <label><@t.page 'log.login_ip'/>:</label>
                    <input type="text" name="ip" value="${ip!}"/>
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive"><@t.page 'button.search'/></button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="card">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a href="logLogin/delete?_csrf=<@tools.csrfToken admin=true/>" title="<@t.page 'confirm.batch_delete'/>" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i><@t.page 'button.batch_delete'/></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layoutH orderField="${orderField!}" orderType="${orderType!}">
        <thead>
            <tr>
                <th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th><@t.page 'user.username'/></th>
                <th><@t.page 'user.id'/></th>
                <th><@t.page 'channel'/></th>
                <th><@t.page 'log.login_ip'/></th>
                <th><@t.page 'result'/></th>
                <th orderField="createDate"><@t.page 'log.login_date'/></th>
                <th><@t.page 'log.error_password'/></th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr>
                <td><input name="ids" value="${a.id}" type="checkbox"></td>
                <td class="exclude-translate">${(a.name)!}</td>
                <td>
                    ${a.userId!}
                </td>
                <td class="exclude-translate">
                    ${a.channel!}
                </td>
                <td>
                    <div class="box">
                        <p>${a.ip!}</p>
                        <p>${(getIpRegion(a.ip).address)!}</p>
                    </div>
                </td>
                <td>
                    ${a.result?then(t.pageMessage('success'),t.pageMessage('fail'))}
                </td>
                <td>${a.createDate!}</td>
                <td><#if !a.result><@t.secrecy a.errorPassword 2/></#if></td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@log.loginList>